package com.wd.mylibrary_login.fragment

import android.graphics.Canvas
import android.graphics.Color
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.graphics.blue
import com.wd.mylibrary_base.base.BaseFragment
import com.wd.mylibrary_login.R
import com.wd.mylibrary_login.databinding.FragmentSexBinding
import com.wd.mylibrary_login.viewmodel.SexViewModel


/**
 * A simple [Fragment] subclass.
 * Use the [SexFragment.newInstance] factory method to
 * create an instance of this fragment.
 */
class SexFragment : BaseFragment<SexViewModel,FragmentSexBinding>(R.layout.fragment_sex) {
    var falg:Boolean=true
    override fun initView() {
       dataBinding.male.setOnClickListener {view->
               view.setBackgroundResource(R.drawable.sex)
           dataBinding.female.setBackgroundResource(0)
       }

        dataBinding.female.setOnClickListener {view->
                dataBinding.female.setBackgroundResource(R.drawable.sex)
            dataBinding.male.setBackgroundResource(0)
        }
    }

    override fun dataObserve() {

    }


}